<%@page import="com.railway.files.model.*" %>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>

<html>
<head>

	 <title><%=FilesColums.TABLE_ALIAS%>编辑</title>
    <%@ include file="/commons/listcssjs.jsp" %>

</head>
<body>
	<form id="form1" action="${ctx}/files/Files/update.do?fileTypes=SOFT" method="post">
		<input type="submit" value="提交"  />
		<input type="button" value="返回列表" onclick="window.location='${ctx}/files/Files/list.do?fileTypes=SOFT'"/>
		<input type="button" value="后退" onclick="history.back();"/>
		
		<table class="formTable">
			<input type="hidden" id="id" name="id" value="${model.id}"/>
		
		<!-- ONGL access static field: @package.class@field or @vs@field -->
						
			
			
			
			<tr>	
				<td class="tdLabel">
					<%=FilesColums.ALIAS_NAMES%>:
				</td>	
				<td>
				<input id="names" name="names" value="${model.names}"
				type="text"  class="easyui-validatebox"   />
				</td>
			</tr>
						<tr>	
				<td class="tdLabel">
					<%=FilesColums.ALIAS_MEMO%>:
				</td>	
				<td>
				<input id="memo" name="memo" value="${model.memo}"
				type="text"  class="easyui-validatebox"   />
				</td>
			</tr>
			
			<tr>	
				<td class="tdLabel">
					<%=FilesColums.ALIAS_PATHS%>:
				</td>	
				<td>
				<input disabled="true" id="paths" name="paths" value="${model.paths}"
				type="text"  class="easyui-validatebox"   />
				</td>
			</tr>
									<tr>	
				<td class="tdLabel">
					<%=FilesVideoColumns.ALIAS_CTXPATHS %>:
				</td>	
				<td>
				<input disabled="true" id="ctxpaths" name="ctxpaths" value="${model.paths}"
				type="text"  class="easyui-validatebox"   />
				</td>
			</tr>	
			
			<tr>	
				<td class="tdLabel">
					<%=FilesColums.ALIAS_FILE_TYPE%>:
				</td>	
				<td>
				<input disabled="true" id="fileType" name="fileType" value="${model.fileType}"
				type="text"  class="easyui-validatebox"   />
				</td>
			</tr>
<!--tr>	
				<td class="tdLabel">
					<%=FilesColums.ALIAS_CATEGORY%>:${model.catname}
				</td>	
				<td>		
				
				<input id="catname" name="catname" value="${model.catname}" type="text" readonly  class="easyui-validatebox" onclick="javascript:openURL('Dept',250,400)"/>
				<input  id="objId" name="objId" value="${model.objId}" type="hidden"  class="easyui-validatebox"/>
				</td>
			</tr-->
			
			<tr>	
				<td class="tdLabel">
					<%=FilesColums.ALIAS_CATEGORY%>:
				</td>	
				<td>		
				
				<input id="catname" name="catname" value="" type="text" readonly  class="easyui-validatebox" onclick="javascript:openURL('Dept',250,400)"/>
				<input  id="objId" name="objId" value="${model.objId}" type="hidden"  class="easyui-validatebox"/>
				</td>
			</tr>
			


			
			
			<tr>	
				<td class="tdLabel">
					<%=FilesColums.ALIAS_CREATOR%>:
				</td>	
				<td>
				<input disabled="true" id="creator" name="creator" value="${model.creator}"
				type="text"  class="easyui-validatebox"   />
				</td>
			</tr>
			
			
			<tr>	
				<td class="tdLabel">
					<%=FilesColums.ALIAS_CREATE_TIME%>:
				</td>	
				<td>
				<input disabled="true" value="${model.createTimeString}" id="createTimeString" name="createTimeString"  
				type="text" />
				</td>
			</tr>
		</table>
	</form>

</body>
<script> 
//begin $(document).ready(handler)
$(function(){
$('#form1').submit(function(){
	return $('#form1').form('validate');
});}
)//end $(document).ready(handler)


   function openURL(urlstr,width,height){  
		    
      			 var url  = '${ctx}/files/FilesCategory/showCategoryTree.do'; 
          		 var returnVal = window.showModalDialog(url, window, "dialogWidth="+width+"px;dialogHeight="+height+"px;status:0;scroll:no");   
            	 form1.objId.value = returnVal[0]; 
           		 form1.catname.value = returnVal[1]; 
        	}   
</script>
 
</html>